import request from '@/utils/request'


//获取全部会员信息
export function getMemberList() {
  return request({
    url: '/store/member/getMemberList',
    method: 'get',

  })
}

// 修改会员状态

export function changeMemberStatus(id, status) {
  return request({
    url: '/store/member/changeMemberStatus',
    method: 'get',
    params: {
      id,
      status
    }
  })
}

// 查询会员列表
export function listMember(query) {
  return request({
    url: '/store/member/list',
    method: 'get',
    params: query
  })
}

// 查询会员详细
export function getMember(id) {
  return request({
    url: '/store/member/' + id,
    method: 'get'
  })
}

// 新增会员
export function addMember(data) {
  return request({
    url: '/store/member',
    method: 'post',
    data: data
  })
}

// 修改会员
export function updateMember(data) {
  return request({
    url: '/store/member',
    method: 'put',
    data: data
  })
}

// 删除会员
export function delMember(id) {
  return request({
    url: '/store/member/' + id,
    method: 'delete'
  })
}
